package com.renergy;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

	/**
	 * 
	 * @return
	 */
	public static String getDate() {
		return new Date().toString();
	}

	/**
	 * date format can be yyyy-MM-dd, or yyyy-MM-dd hh:mm:ss
	 * @param format
	 * @return
	 */
	public static String getDate(String format) {
		SimpleDateFormat sdf = new SimpleDateFormat(format);
		return sdf.format(new Date());
	}
}
